package main

import (
	"demo/models"
	"demo/routers"
	"fmt"

	"github.com/gin-gonic/gin"
)

func main() {
	r := gin.Default()
	routers.InitRouter(r)

	models.InitDB()

	r.GET("/", Index)
	err := r.Run(":8080")
	if err != nil {
		fmt.Println(err)
	}

}

func Index(c *gin.Context) {
	c.String(200, "nihao")
}
